/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const adRouter = {
  path: '/ad',
  component: Layout,
  redirect: '/ad/index',
  name: 'ad',
  meta: {
    title: 'ad',
    icon: 'dashboard',
    roles:['other','admin','edit']
  },
  children: [
    {
      path: 'category',
      component: () => import('@/views/ad/category'),
      name: 'adCategory',
      meta: { title: 'adCategory' }
    },
    {
      path: 'index',
      component: () => import('@/views/ad/index'),
      name: 'adIndex',
      meta: { title: 'adIndex'}
    }
  ]
}
export default adRouter
